package veating.dao;

import java.util.List;
import veating.bean.Food;

public interface FoodDao {
	/**
	 * 
	 * @param food
	 * @return
	 */
	public int save(Food food);
	/**
	 * 
	 * @param fid
	 * @return
	 */
	public int delete(int fid);
	/**
	 * 
	 * @param fid
	 * @param food
	 * @return
	 */
	public int update(int fid,Food food);
	/**
	 * 
	 * @param fid
	 * @return
	 */
	public Food fingByfid(int fid);
	/**
	 * 
	 * @return
	 */
	public List<Food> findAllFood();
	/**
	 * 
	 * @param column
	 * @param value
	 * @return
	 */
	public List<Food> fingFoodByProperty(String column, String value);

}
